package belf.migrate.api.exception;

import belf.migrate.core.exception.BelfRuntimeException;

/**
 * 数据库迁移，源端到目标端缺少数值类型定义的异常
 */
public class DataTypeMappingNotExistException extends BelfRuntimeException {
    private static final String MSG = "No DataType Mapping for Task %s On Type %s.";

    public DataTypeMappingNotExistException(String taskType, String typnename) {
        super(APIErrorCode.NO_DATATYPE_MAPPING,
                String.format(MSG, taskType, typnename));
    }
}
